package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 直保信息表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_direct_insurance")
@ApiModel(value = "CgnciDirectInsuranceDO对象", description = "直保信息表")
public class CgnciDirectInsuranceDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("直保ID")
    @TableId(value = "direct_id", type = IdType.ASSIGN_ID)
    private Long directId;

    @ApiModelProperty("业务ID")
    private Long businessId;

    @ApiModelProperty("直保项目")
    private String directItem;

    @ApiModelProperty("直保经纪人")
    private String broker;

    @ApiModelProperty("保费(不含税)")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal premiumExclTax;

    @ApiModelProperty("保费(含税)")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal premiumInclTax;

    @ApiModelProperty("直保被保险人")
    private String insuredInsurer;

    @ApiModelProperty("直保保险人")
    private String directInsurer;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;


}
